package top.fate.entity;


import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

//es数据库
@Data
@Document(indexName = "reading_word")
public class NewEsWord {
    @Id
    String id;

    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    String name;

    @Field(type = FieldType.Text,analyzer = "ik_smart")
    String title;

    @Field(type = FieldType.Text,analyzer = "ik_smart")
    String content;
}
